package com.weiming.storage.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class StorageController {

    @Value("${server.port}")
    private String port;

    @RequestMapping("reduce")
    public String reduceStorage(){
        return "从服务端口" + port + "开始扣减库存......";
    }
}
